﻿using System;
using System.Web.SessionState;

namespace Business_Layer.Business_Layer.Procesos
{
    public class VariablesPrivadas
    {
        private readonly HttpSessionState _session;
        public VariablesPrivadas(HttpSessionState session)
        {
            _session = session;
        }

        public VariablesPrivadas() { }

        public string UserName
        {
            get { return _session["Username"].ToString(); }
            set { _session["Username"] = value; }
        }

        public string UserPassword
        {
            get { return _session["UserPassword"].ToString(); }
            set { _session["UserPassword"] = value; }
        }

        public string UserRol
        {
            get { return _session["UserRol"].ToString(); }
            set { _session["UserRol"] = value; }
        }

        public int UserId
        {
            get { return Convert.ToInt32(_session["UserId"]); }
            set { _session["UserId"] = value; }
        }
    }
}